package dr.reseau;

import java.io.Serializable;

import dr.moteur.BaseAbstraite;
import dr.moteur.TourAbstraite;
import dr.moteur.BaseAbstraite.enumAgent;

public class Requete implements Serializable{

	
	private static final long serialVersionUID = 1L;

	public TourAbstraite tour;
	public int baseDestination;
	public int baseCourante;
	public enumAgent production;
	public int amelioration;//0 1 2 3, ameliorations ou destruction
	public int tourCourante;
	
	public Requete(TourAbstraite tourAPlacer){//creer une tour
		tour = tourAPlacer;
		baseDestination = -1;
		baseCourante = -1;
		production = enumAgent.SCOUT;
		amelioration = -1;//0 1 2 3, ameliorations ou destruction
		tourCourante = -1;
	}
	public Requete(BaseAbstraite org, int dest){//Changer la destination d'une base
		tour = null;
		baseDestination = dest;
		baseCourante = org.getIndice();
		production = enumAgent.SCOUT;
		amelioration = -1;//0 1 2 3, ameliorations ou destruction
		tourCourante = -1;
	}
	public Requete(int base, enumAgent prod){//Changer la production d'une base
		tour = null;
		baseDestination = -1;
		baseCourante = base;
		production = prod;
		amelioration = -1;//0 1 2 3, ameliorations ou destruction
		tourCourante = -1;
	}
	public Requete(int tower, boolean destroy){//Detruire une tour
		tour = null;
		baseDestination = -1;
		baseCourante = -1;
		production = enumAgent.SCOUT;
		amelioration = 0;//0 1 2 3, ameliorations ou destruction
		tourCourante = tower;
	}
	public Requete(int tower, int fild, boolean yes){//Ameliorer une tour
		tour = null;
		baseDestination = -1;
		baseCourante = -1;
		production = enumAgent.SCOUT;
		amelioration = fild;//0 1 2 3, ameliorations ou destruction
		tourCourante = tower;
	}


}
